home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
RenameForSequence.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
639b
|
33 lines
/*
* RenameForSequence.ifx.pre
* Written by Thomas Krehbiel
*
* Rename frames into sequential numbers.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_RenameSeq_'
basedir = GETCLIP(base||'BaseDir')
basefile = GETCLIP(base||'BaseFile')
RequestFile '"Sequence Basename:"' '"'basedir'"' '"'basefile'"'
IF rc ~= 0 THEN EXIT rc
basename = result
CALL SETCLIP(base||'BaseDir', filereq.path)
CALL SETCLIP(base||'BaseFile', filereq.file)
CALL SETCLIP(base||'Base', basename)
EXIT